#include "GameManager.h"

GameManager::GameManager()
{
}

unsigned GameManager::calcObjectPosition(DynamicObject *object, double elapsed)
{
    unsigned movement = object->Progress() + ceil(object->Speed() * elapsed);
    object->SetProgress(movement % 100);

    return floor( (double)(movement / 100)); // cells passed
}
